package com.ruoyi.ldzlsb.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 保养记录对象 sb_maintenance_record
 * 
 * @author anli
 * @date 2025-01-11
 */
public class SbMaintenanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 记录编号 */
    @Excel(name = "记录编号")
    private String recordCode;

    /** 保养计划ID */
    @Excel(name = "保养计划ID")
    private Long planId;

    /** 保养计划对象 */
    private SbMaintenancePlan plan;

    /** 保养配置ID */
    @Excel(name = "保养配置ID")
    private Long configId;

    /** 保养配置名称 */
    @Excel(name = "保养配置名称")
    private String configName;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long equipmentId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equipmentName;

    /** 设备对象 */
    private SbEquipment equipment;

    /** 保养日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保养日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintenanceDate;

    /** 保养人员ID */
    private Long maintainerId;

    /** 保养人员名称 */
    @Excel(name = "保养人员")
    private String maintainerName;

    /** 负责部门ID */
    private Long deptId;

    /** 负责部门名称 */
    @Excel(name = "负责部门")
    private String deptName;

    /** 保养状态（0未开始 1进行中 2已完成 3已取消） */
    @Excel(name = "保养状态", readConverterExp = "0=未开始,1=进行中,2=已完成,3=已取消")
    private String maintenanceStatus;

    /** 保养结果（0正常 1异常 2待处理） */
    @Excel(name = "保养结果", readConverterExp = "0=正常,1=异常,2=待处理")
    private String maintenanceResult;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 实际耗时（分钟） */
    @Excel(name = "实际耗时")
    private Integer actualDuration;

    /** 总项目数 */
    @Excel(name = "总项目数")
    private Integer totalItems;

    /** 正常项目数 */
    @Excel(name = "正常项目数")
    private Integer normalItems;

    /** 异常项目数 */
    @Excel(name = "异常项目数")
    private Integer abnormalItems;

    /** 异常描述 */
    @Excel(name = "异常描述")
    private String abnormalDesc;

    /** 纠正措施 */
    @Excel(name = "纠正措施")
    private String correctiveActions;

    /** 下次保养建议 */
    @Excel(name = "下次保养建议")
    private String nextMaintenanceSuggestion;

    /** 图片 */
    private String img;

    /** 备注 */
    private String remark;

    /** 删除标志（0代表存在 1代表删除） */
    private String isDelete;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }

    public void setRecordCode(String recordCode) 
    {
        this.recordCode = recordCode;
    }

    public String getRecordCode() 
    {
        return recordCode;
    }

    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }

    public void setPlan(SbMaintenancePlan plan) 
    {
        this.plan = plan;
    }

    public SbMaintenancePlan getPlan() 
    {
        return plan;
    }

    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }

    public void setConfigName(String configName) 
    {
        this.configName = configName;
    }

    public String getConfigName() 
    {
        return configName;
    }

    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }

    public void setEquipmentName(String equipmentName) 
    {
        this.equipmentName = equipmentName;
    }

    public String getEquipmentName() 
    {
        return equipmentName;
    }

    public void setEquipment(SbEquipment equipment) 
    {
        this.equipment = equipment;
    }

    public SbEquipment getEquipment() 
    {
        return equipment;
    }

    public void setMaintenanceDate(Date maintenanceDate) 
    {
        this.maintenanceDate = maintenanceDate;
    }

    public Date getMaintenanceDate() 
    {
        return maintenanceDate;
    }

    public void setMaintainerId(Long maintainerId) 
    {
        this.maintainerId = maintainerId;
    }

    public Long getMaintainerId() 
    {
        return maintainerId;
    }

    public void setMaintainerName(String maintainerName) 
    {
        this.maintainerName = maintainerName;
    }

    public String getMaintainerName() 
    {
        return maintainerName;
    }

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public void setDeptName(String deptName) 
    {
        this.deptName = deptName;
    }

    public String getDeptName() 
    {
        return deptName;
    }

    public void setMaintenanceStatus(String maintenanceStatus) 
    {
        this.maintenanceStatus = maintenanceStatus;
    }

    public String getMaintenanceStatus() 
    {
        return maintenanceStatus;
    }

    public void setMaintenanceResult(String maintenanceResult) 
    {
        this.maintenanceResult = maintenanceResult;
    }

    public String getMaintenanceResult() 
    {
        return maintenanceResult;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setActualDuration(Integer actualDuration) 
    {
        this.actualDuration = actualDuration;
    }

    public Integer getActualDuration() 
    {
        return actualDuration;
    }

    public void setTotalItems(Integer totalItems)
    {
        this.totalItems = totalItems;
    }

    public Integer getTotalItems()
    {
        return totalItems;
    }

    public void setNormalItems(Integer normalItems)
    {
        this.normalItems = normalItems;
    }

    public Integer getNormalItems()
    {
        return normalItems;
    }

    public void setAbnormalItems(Integer abnormalItems)
    {
        this.abnormalItems = abnormalItems;
    }

    public Integer getAbnormalItems()
    {
        return abnormalItems;
    }

    public void setAbnormalDesc(String abnormalDesc)
    {
        this.abnormalDesc = abnormalDesc;
    }

    public String getAbnormalDesc()
    {
        return abnormalDesc;
    }

    public void setCorrectiveActions(String correctiveActions)
    {
        this.correctiveActions = correctiveActions;
    }

    public String getCorrectiveActions()
    {
        return correctiveActions;
    }

    public void setNextMaintenanceSuggestion(String nextMaintenanceSuggestion)
    {
        this.nextMaintenanceSuggestion = nextMaintenanceSuggestion;
    }

    public String getNextMaintenanceSuggestion()
    {
        return nextMaintenanceSuggestion;
    }

    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }

    public void setRemark(String remark) 
    {
        this.remark = remark;
    }

    public String getRemark() 
    {
        return remark;
    }

    public void setIsDelete(String isDelete) 
    {
        this.isDelete = isDelete;
    }

    public String getIsDelete() 
    {
        return isDelete;
    }
} 